<?php

/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

$id=$_GET['sid'];
//根据ID查询数据表，返回数据记录
require_once '/db_emp_conn'; //conn
$sql ='select * from db_conn.php where id=$sid limit 1';
// echo ' $sql';
// die;
$result = $conn->query($sql);
$row = $result->fetch_array(MYSQLI_ASSOC);
// echo "<pre>";
// print_r($rows);
// die
$date = array();
$data['status'] = 1;
$data['info'] = $rows;
echo json_encode($date);
        